home *** CD-ROM | disk | FTP | other *** search
- (Date/Time.PROC)
- (SCREEN OFF -Optional- Don't forget SCREEN ON after SCREEN OFF)
- COPYINTO W$,Date/Time
- COPYINTO X$,The Time is:
- ERASE Y$
- ERASE Z$
-
- (Create a small Window, center screen)
- CUWOPEN2 0,0,40,240
-
- (We come back to here after the first pass)
- :LOOPSTART
-
- (Get Date/Time into Y$ string... )
- TIMEDATE Y$
-
- (Here the first space is a "space" the next six spaces are "HardSpaces",)
- (or "OPTION/SPACE BAR", in order to force a line wrap after the Date.)
- COPYINTO Z$, Today is
-
- (Get the Day of the week... )
- GETGLOBAL A%,11
-
- (Find out what day of the week it is... )
- TEST A% = 1
- IF NO JUMPTO MO
- CONCAT Z$,Sunday
- JUMPTO CONTINUE
-
- :MO
- TEST A% = 2
- IF NO JUMPTO TU
- CONCAT Z$,Monday
- JUMPTO CONTINUE
-
- :TU
- TEST A% = 3
- IF NO JUMPTO WE
- CONCAT Z$,Tuesday
- JUMPTO CONTINUE
-
- :WE
- TEST A% = 4
- IF NO JUMPTO TH
- CONCAT Z$,Wednesday
- JUMPTO CONTINUE
-
- :TH
- TEST A% = 5
- IF NO JUMPTO FR
- CONCAT Z$,Thursday
- JUMPTO CONTINUE
-
- :FR
- TEST A% = 6
- IF NO JUMPTO SA
- CONCAT Z$,Friday
- JUMPTO CONTINUE
-
- (No need to test for A% = 7; it's the last choice!)
- :SA
- CONCAT Z$,Saturday
- (No need for a "JUMPTO CONTINUE", we just need to continue on... )
-
- :CONTINUE
-
- (Check to see if the Close box was clicked in)
- IF CLOSEUW JUMPTO CLOSEWIND
-
- (Update the window)
- UWUPDATE
- (Pause about a second to slow window flicker)
- (Running MultiFinder & other applications will slow flicker also)
- PAUSE 60
-
- JUMPTO LOOPSTART
-
- :CLOSEWIND
- UWCLOSE
- (SCREEN ON -Optional- Don't forget SCREEN ON after SCREEN OFF)
- END
-